package me.yuxiaoyao.lock.interceptor;

class ThrowableWrapper extends Throwable {
    private final Throwable origin;

    public ThrowableWrapper(Throwable throwable) {
        super(throwable.getMessage(), throwable);
        this.origin = throwable;
    }

    public Throwable getOrigin() {
        return origin;
    }
}